﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UIFramework
{
    public abstract class UIDepthItem : MonoBehaviour 
    {
        public abstract void ChangeDepth(int depthDelta);
    }

    public abstract class UIDepthItem<T> : UIDepthItem where T : Component
    {
        [SerializeField] protected T _component;
        [SerializeField] protected string _sortingLayerName;
        [SerializeField] protected int _originalOrder;

        public virtual void Init(string sortingLayer, T component) 
        {
            _sortingLayerName = sortingLayer;
            _component = component;
        }
    }
}
